<script>
    let str = ''
    for(let i = 0; i<=6;i++){
        str += `
        <div class="content-list">
            <div class="list-img">
                <img src="../img/custom1.jpg" alt="" srcset="">
                <div class="mark"></div>
                <div class="loading">
                    <img src="../img/images/bn7.png" alt="">
                </div>
                <div class="link iconfont icon-lianjie"></div>
            </div>
            <div class="product">
                <div class="productName">
                    <div>
                        <strong>机型：S1</strong>
                        <i>|</i>
                        <span>32吋触摸屏XY轴寻址智能售货机售货机售货机</span>
                    </div>
                    <div title="GSP规范，恒温恒湿，HIS、ERP对接，扫码枪、小票打印、处方留存，可选悬挂、弹簧、推板、履带货道">GSP规范，恒温恒湿，HIS、ERP对接，扫码枪、小票打印、处方留存，可选悬挂、弹簧、推板、履带货道</div>
                </div>
                <div class="product-detail iconfont icon-youjiantou"></div>
            </div>
        </div>
        `
    }
    $('.content').append(str)

    //获取地址栏参数
    function getUrlParams(name)
    {
        var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if(r!=null)return  unescape(r[2]); return null;
    }
    console.log(getUrlParams('id'));
</script>